package com.openthinks.joyniproject.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.openthinks.joyniproject.model.UserInfo;
import com.openthinks.joyniproject.service.AccountService;
import com.openthinks.joyniproject.service.BaseService;
@Service
public class AccountServiceImpl extends BaseService implements AccountService  {

	@Override
	public UserInfo getUserInfo(UserInfo userInfo) {
		return this.accountDao.get(userInfo);
	}

	@Override
	public boolean changePassword(Map<String, Object> data) {
		return this.accountDao.changePassword(data);
	}

	@Override
	public List<UserInfo> getUserInfoByIds(List<String> ids) {
		return this.accountDao.getUserInfoByIds(ids);
	}

	@Override
	public UserInfo getUserInfoById(long id) {
		return this.accountDao.getUserInfoById(id);
	}
	
	@Override
	public List<UserInfo> getUserInfoByDeptId(String deptId) {
		return this.accountDao.getUserInfoByDeptId(deptId);
	}

}
